package com.weipai.demo.service;


import com.weipai.demo.model.DImgBase;
import com.weipai.demo.model.bo.ImgBO;
import com.weipai.demo.model.vo.ImageVO;

import java.util.List;

/**
 * 图片相关接口
 *
 * @author Jiahaonan
 * @create 2017-11-18 11:13
 * @version $Id: $Id
 */
public interface IImageService {

        /**
         * <p>inserImageInfo.</p>
         *
         * @param productType a {@link Integer} object.
         * @param imgType a {@link Integer} object.
         * @param businessCode a {@link String} object.
         * @param imgurls a {@link String} object.
         * @param title a {@link String} object.
         * @param index a {@link Integer} object.
         * @return a {@link Integer} object.
         */
        Integer inserImageInfo(Integer productType, Integer imgType, String businessCode, String imgurls,
                               String title, Integer index, String name);

        /**
         * <p>deleteImage.</p>
         *

         * @return a int.
         */
        int deleteImage(ImageVO imgInfo);
        /**
         * <p>searchImg.</p>
         *
         * @param businessCode a {@link String} object.
         * @param productType a {@link Integer} object.
         * @param imgType a {@link Integer} object.
         * @return a {@link List} object.
         */
        List<ImgBO> searchImg(String businessCode, Integer productType
                , Integer imgType);
        /**
         * <p>upImage.</p>
         *
         * @param list a {@link List} object.
         */
        void upImage(List<DImgBase> list);

        /**
         * 根据id修改图片url
         * @param list
         */

        void upImageUrl(List<ImgBO> list);
}
